Resource allocation using entitlement hints

ABSTRACT

An embodiment of an information handling apparatus can comprise an entitlement vector operable to specify resources used by at least one object of a plurality of a plurality of objects, and logic operable to issue a hint instruction based on the entitlement vector for usage in scheduling the resources.

BACKGROUND

Resource allocation in data processing and computing is used for applications to run on a system. A program initiated by a user generates a process. A computer allocates resources for the process to be run. Typical resources include access to a section of computer memory, data in a device interface buffer, one or more files, a suitable amount of processing power, and the like.

A computer with only a single processor can only perform one process at a time, regardless of the number of programs loaded by a user or initiated on start-up. Single-processor computers emulate the running of multiple programs concurrently because the processor multitasks, rapidly alternating between programs in very small time slices. Time allocation is automatic, however higher or lower priority may be given to certain processes with high priority programs typically allocated either more or larger slices of processor execution time.

On multi-processor computers, different processes can be allocated to different processors so that the computer can truly multitask.

SUMMARY

An embodiment of an information handling apparatus can comprise an entitlement vector operable to specify resources used by at least one object of a plurality of a plurality of objects, and logic operable to issue a hint instruction based on the entitlement vector for usage in scheduling the resources.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention relating to both structure and method of operation may best be understood by referring to the following description and accompanying drawings:

FIGS. 1A, 1B, 1C, and 1D are schematic block diagrams showing embodiments of an information handling apparatus adapted to facilitate resource allocation;

FIGS. 2A, 2B, and 2C are schematic block diagrams illustrating embodiments of an information handling apparatus adapted to allocate resources based on a received hint instruction;

FIGS. 3A, 3B, and 3C are schematic block diagrams which depict embodiments of an information handling apparatus adapted to determine usage of resources and use this determination to form a hint instruction;

FIG. 4 is a schematic block diagram showing an embodiment of an information handling apparatus adapted to receive a hint instruction and schedule resources accordingly;

FIGS. 5A through 5H are schematic flow diagrams depicting an embodiment or embodiments of a method operable in an information handling apparatus adapted for allocating resources;

FIGS. 6A through 6F are schematic flow diagrams showing an embodiment or embodiments of a method operable in an information handling apparatus adapted to allocate resources based on a received hint instruction;

FIGS. 7A through 7J are schematic flow diagrams illustrating an embodiment or embodiments of a method operable in an information handling apparatus adapted to determine usage of resources and use this determination to form a hint instruction;

FIGS. 8A through 8D are schematic flow diagrams depicting an embodiment or embodiments of a method operable in an information handling apparatus adapted to receive a hint instruction and schedule resources accordingly;

FIG. 9 is a schematic block diagram illustrating an embodiment or embodiments of a computer program product configured for allocating resources using hint instructions; and

FIG. 10 is a schematic block diagram showing an embodiment of an information handling apparatus which is adapted to facilitate resource allocation.

DETAILED DESCRIPTION

In various embodiments, computer systems and associated methods can be configured to include one or more of several improvements that facilitate resource handling.

Various aspects of resource allocation include hardware threading, computational limits, pooled resources, entitlements, and others. Resource allocation can be handled via various architectural aspects of a system including microarchitecture, instruction set architecture (ISA), operating system, and library calls. Software can associate capabilities with particular library functions or software objects. This software can be in the form of compiler, operating system, or others. The operating system can, for example, create a profile for any process running floating point operations and give that entitlement. Resources allocated include processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, other hardware, and the like. Resources further include power, cycles, and the like.

Entitlements can be used to allocate resources. Entitlements can be defined as user-specified rights wherein a process is entitled to a predetermined percentage of power or of time. A scheduler or chooser can monitor entitlement values and schedule the next highest priority process. A particular scheme can allocate modulo by bit to avoid starving a process with lower entitlement. In some conditions, the level of entitlement can be overridden or adjusted. Entitlement can be set according to a predetermined algorithm which defines a “fair share” for the processes, for example round-robin, history-based, randomized, and the like, which are efficient since a large history need not be accumulated. Thus, an efficient and inexpensive hardware implementation is possible.

A metric can be specified which enables modification of a goal. A selected level of entitlement to resource consumption can be assigned to each process. One example scheme can be a short, low complexity method which is implemented while storing a limited operation history. For example, when running low on battery charge, a sequence 1-2-3-4-4-3-2-1 can be used to determine whether any of the processes is a resource glutton and can rank the processes on order of gluttony. The most gluttonous can be assigned the lowest priority. Another option can rank processes according to gluttony in combination with another factor of goodness (niceness). Processes can be ranked for the next cycle with the most gluttonous given last priority or can be ranked according to gluttony and one other nice system criterion. Monitoring and/or control can be performed highly efficiently if hardware, although either monitoring can be performed either in hardware or software in various embodiments. Power management units in CPUs can be used for monitoring, for example to monitor for increases or decreases in voltage or frequency, and for thread execution selection.

Capabilities can be used to perform monitoring and allocation of resources. For example, granting the capability to run video processing software can be combined with simultaneous granting of power capability.

Power is typically global to a process or to an individual CPU. Use of capabilities enables more refined control of power, for example power can be made specific to an object or library routine. With power global to a process, the process will continue to run in absence of a fault, a page fault, a disk access, or the like, and will run until blocked by the operating system scheduler, allowing high power consumption. Use of capabilities enables power to be controlled on a per-hardware thread granularity. Use of capabilities further enables power to be controlled specific to a per-hardware thread granularity for throttling power.

Processors can use instruction prefetch to improve execution speed by reducing wait states. The processor prefetches an instruction by request from main memory before the instruction is needed and, when retrieved from memory, placing the prefetched instruction in a cache. When needed, the instruction is quickly accessed from the cache. Prefetch can be used in combination with a branch prediction algorithm which anticipates results of execution to fetch predicted instructions in advance. Prefetches conventionally operate independently. In some embodiments, a processor disclosed herein can prefetch according to holistic monitoring of operating conditions such as voltage, frequency, and the like to more accurately determine or predict which instructions to prefetch.

The cache can be reconfigured dynamically, for example beginning with a single large, slow cache which can be divided into a relatively small subcache and a larger subcache to enable faster operation. In embodiments disclosed herein, operating characteristics can be monitored to generate information for dynamic reconfiguring of the cache. As a result of the monitored operating conditions, the cache can be selectively configured for slower or faster speed, larger and smaller cache subregions. In some conditions, part of the cache can be temporarily disabled, for example to save power. Monitoring of operating conditions can enable a suitable balance of considerations to determine whether part of the cache is to be disabled, for example determining whether the power saved in disabling part of the cache is appropriate in light of the power lost with a greater cache miss rate.

Disclosed system and method embodiments can use operating condition monitoring and holistic control at the level of calling an object. In an object-level paradigm, various objects or values (such as numbers, symbols, strings, and the like) can be combined to form other objects or values until the final result objects or values are obtained. New values can be formed from existing values by the application of various value-to-value functions, such as addition, concatenation, matrix inversion, and the like. Various objects have different impacts on system operations.

An example of an object which, when called, can have large consumption of power or other resources is video encoding which is a brute force, unintelligent algorithm which runs much more efficiently on dedicated hardware than a general CPU, and has real-time constraints. Video conferencing has similar real-time constraints.

Another object example is video games which perform many different tasks concurrently including processing geometry and processing video simultaneously, possibly processing speech for Skype communications, voice compression, input/output, and the like. Video games thus typically involve concurrent operation of multiple objects such as the game processing tasks and interface (Application Programming Interface, API) that perform different actions separately. The multiple objects are commonly run as separate threads, unless prohibitive due to the large amount of overhead in running threads that are not essential. Separate threads simplify programming.

In some configurations, applications, and conditions, multiple threads can be run wherein the threads need not be run in the same context.

Hyperthreading is a particular implementation of hardware threading. Software threading is a slightly different implementation of threading wherein the threads are often, but not always, related. In some implementations, a processor can include a GOAL register that can be used to set performance characteristics for particular threads. For example, if different routines (Skype, physics) are run in different threads, selected operating characteristics for the threads can be loaded into the GOAL register to give the threads separate issues. Allocating priority to the different threads can be difficult. In an illustrative system, priority to the threads can be allocated using a NICE utility which specifies acceptable performance for a particular operation and allows reduced priority in appropriate conditions for tasks that can be assigned lower priority with little or no consequence.

In an example implementation, priorities, particular types of priorities, and entitlements can be associated with particular library routines to facilitate management of relatively heuristic phenomena. A library can be constituted wherein entitlements are assigned to individual library routines. The library includes information for adjusting the priority of threads. In some configurations or applications, the library can support hint vectors, such as branch prediction hints to specify whether static prediction should be taken or not taken. In some embodiments, the library can be configured to support NICE-type handling of a hint vector.

A process scheduler can be constituted to support prioritized entitlements and resource allocations upon calling selected libraries. A typical embodiment includes such support in software, although hardware support can also be implemented. For example, a network library can include library routines adapted for heavy network usage so that resources giving access to the network are more important processes to schedule. More entitlements are allocated to network-related resources. Libraries can also be configured to handle secondary priorities that change dynamically. For example, a sound card can have a greater power priority and have a pattern of operation wherein a process uses a network card and possibly other subsystems in combination with the sound card. Thus, the network card and other subsystems can also be allocated a higher priority. Similarly, for a process which performs less modeling and number computation in lieu of higher input/output operations and sending of information, a higher level of priority can be allocated to input/output resources.

Entitlements can be used to specify operations of a library. For example, a library with entitlement to run a predetermined number of floating point operations per second can, in response to a condition of executing instructions with few or no floating point computations, use the condition as a hint to power down floating point hardware, thus saving power. Thus, if computations include fixed point operations but no floating point operations, an a priori indicator can be generated designating that the floating point hardware is not needed in the near future and can be powered down. A process can call a library and, if known that a resource is not needed, the resource can be temporarily halted, thereby changing the entitlement level of that process with respect to the resource (for example a floating point unit) to a very low point.

In the illustrative example, the entitlement level of the process with respect to the floating point unit can be changed to very low because the resource is not needed for a foreseeable duration. The process thus indicates to other processes a willingness to relinquish access to the source, for example a willingness to be “nice” about allowing others to use the resource, so that access is deferred in favor of any other process that uses the resource, or the resource is shut down if not currently needed by another process.

Rather than have hardware determine demand for a resource after instructions have been executed, the illustrative system and method can use a call to a library or the result of making a call to the library as an indicator of entitlement niceness. This entitlement can be enforced in the manner of capabilities, for example by requesting access to a memory region, a request which may be denied. The library can give information regarding entitlement, thus giving a priori knowledge.

Resource allocation can also be managed using hints. An illustrative instruction that uses a hint is a hint that not much floating point computation is to be performed, a hint indicative of power demand. For example, hints to maintain power at a low level or to maintain power at a high level. An exception can create problems when using hints, since a hint is not unwound in the event of an exception. For example, for a hint to maintain high power, an exception which changes the condition but does not reset the hint allows hardware to remain in a high power mode, potentially forever. Examples of problems with hint processing in conditions of context switching include problems with unlocking memory locations.

In contrast to entitlements, capabilities enable mechanisms to unwind.

Entitlement Vector.

An entitlement vector may comprise multiple fields that are respectively directed to multiple different resources or capabilities. General examples may include, for example, floating point, power, arithmetic logic unit (ALU), graphics triangle computations, translation lookaside buffers (TLBs), virtual memory usage, and the like. The entitlement vector can thus be used, for example, to power down the TLB as no longer relevant to operation, or to enable usage of a wide range of virtual memory. Software can determine values for each of these fields, for example after monitoring, or the fields can be preconfigured. To maintain in hardware, an entitlement vector may be a suitable size, such as 256 bits. Values can be Boolean. Otherwise, values can be a number from a numerical range to indicate how much from a percentage or relative sense of a given resource is being requested. For example, a big number may be placed in an ALU field if significant usage of the ALU is expected.

Libraries or other objects (and associated threads) can request entitlements. Objects use resources to execute. For example, a networking library has greater usage of a network resource than other libraries or objects. Particular entitlements may be assigned to individual library routines using an entitlement vector, which can indicate expected capabilities to which an object may be entitled. Entitlements may be assigned via the entitlement vector. An entitlement vector may be used when selecting a thread for execution in a multi-threading environment in terms of aspects such as priority.

In some embodiments, an entitlement vector can be used as a hint for an object. Software or a manual determination can ascertain and/or specify what resources/capabilities are to be used by an object, such as a library. Code may be included, for example at the beginning of a library, to request particular resources in the form of an entitlement vector. The request may be a request for preferential scheduling, especially with regard to resources. Such code may be a hint, a data structure, a set of one or more bits, or the like in the library.

In some embodiments and/or applications an entitlement vector can be operable as a repercussion of a calling library. An entitlement vector can serve as a request for resources. The request may be realized as a call to a system call, such as a request to the operating system to allocate additional resources. A hint instruction can be provided to hardware, for example for hardware to use in scheduling. When a library call is made, an entitlement vector may be returned. An entitlement vector can be returned directly or by reference to an address/register location. Otherwise, an entitlement vector may be installed, for example in association with a register, as a result or side effect of making the library call.

An entitlement vector can be configured to handle field of scale. Human perception is limited. For data representing phenomena that are to be perceived by humans, the data size may be limited so that precision beyond what is human-perceptible may be omitted to conserve resources. Accordingly, a requested data resource can be scaled down or set to a maximum size. For example, finger prints do not require greater than 2 MB, and eyes can discern only “x” amount of resolution. Scale may also be applied to other parameters having a relevant precision that is constrained by the physical world. Thus, a field of the entitlement vector can specify scale. Examples of scale can be human scale, width of the accumulator, or any suitable scale. For example, for a finger print, a suitable scale can be no more than 2 MB.

The entitlement vector field can have a suitable predetermined data path width. Communication and computational data path widths may be large to accommodate data-intensive activities. A data path width entitlement vector field may request a reduction to or only a portion of a maximum available data path width. For example, perhaps only 128 bits of 1024 bits are needed. The other bits of the non-used data path width may be shared with another process or shut down to conserve energy. For example, a portion of a power-hungry super accumulator may be powered down in response to a data path width indication in a field of an entitlement vector. Thus, a field of the entitlement vector can be data path width, a similar concept to scale. A large instruction size, for example 1024 bits, wastes power, but typically only a portion of the bits are used at one time so that a desired subset of the bits can be activated, changing the data path width. The scale concept leads to the concept of a selected partial data path width. The data path width is part of the entitlement. For example, of 1024 bits logic can compute the number of bits actually needed and allocate that predetermined subset of bits, such as 128 bits. The data path field thus can be used to lower the data path width used of the available entitlement vector width, for example activating a super-accumulator data path width.

An entitlement vector can also be used to supply information for scheduling. Individual instruction pointers or threads can be associated with an entitlement vector. For example, four instruction pointers (IPs) can be associated respectively with four entitlement vectors. Logic for a thread chooser can schedule a next thread for execution based at least partly on an entitlement vector. Hence, an entitlement vector may affect priority of scheduling. For example, a glutton with low priority may be moved toward the back of a queue. A miserly resource user with a high priority, on the other hand, can be moved toward the front of the queue.

The entitlement vector can enable usage of selected scheduling functions. Different functions can be used to schedule threads with regard to entitlement vectors. Generally, a function (i) can be based at least partly on: a weight, an entitlement vector_(i), and a usage level_(i). A function can be, but is not necessarily, linear. For example, a sum of a product of a weight times an entitlement vector may be compared to a usage vector when considering priority for scheduling threads.

An entitlement vector and usage vector can be mutually associated. An entitlement vector for an object can be set by software. A usage vector may be determined by hardware by monitoring resource usage during execution. An entitlement vector and a usage vector can be combined into an uber-priority vector that can be used when scheduling threads.

In an example software embodiment, software can monitor the system over history, or can be preprogrammed, and fills in some sets in entitlement vector fields. Software can determine values for the fields and fill in the bits of data, possibly associated as a lookup table, an associated hash table, an extra field to call for a library, and the like. For a library call, an entitlement vector EV is returned. The entitlement vector can be received from various sources, for example from external to calling software. For example, the entitlement vector EV may be installed into hardware as a side effect of the library call.

A factor in determining whether the entitlement vector is handled in software or hardware is the size of the vector.

In an example hardware implementation, a suitable entitlement vector size is 256 bits, although any suitable size is possible. For example, a vector of 64K bits is generally considered too large for hardware implementation.

In some embodiments, an entitlement vector can be associated with each library. The entitlement vector can be used, for example, to eliminate floating point if desired, reduce the number of floating point operations if such operations are rarely used, reduce the scale as appropriate when full accumulator width is unnecessary, increase support for the ALU.

The entitlement vector can be implemented as a call with a memory address made in association with a call to a library which, for example, can return a pointer or address location to the entitlement vector.

Another field of the entitlement vector can be a chooser/thread selector. The entitlement vector can be used by the chooser/scheduler, which includes logic that performs operations based on a single entitlement vector or possibly relative entitlement vectors. Each Instruction Pointer (IP) or thread can have an associated entitlement vector. For example instruction pointers, for IP1, IP2, IP3, IP4, then four entitlement vectors can be allocated. Chooser/scheduler logic considers the entitlement vector when scheduling the next thread for computation. The logic informs the chooser/scheduler about how to make the selection. The logic can perform selected functions to make the choice and for scheduling, for example by elevating or decreasing priority of a thread.

An example function using an entitlement vector (EV) can compute the sum of weight times EV_(i) compared to the usage vector of Thread_(i), a simple target function for evaluating when to schedule threads from the highest priority to the lowest priority. Thus, for a thread with high priority and large requirement for resources, the thread can be elevated in the scheduling list and resources are likely to be allocated. In contrast, a thread that is a glutton for resources and has low priority is likely to be deferred by the scheduler, moving back or to the end of the list of scheduled threads. A high priority thread that consumes only limited resources is likely to be moved up in the schedule list, possibly to the front of the list.

In some embodiments, the entitlement vector supplied by a HINT instruction can be modified by a capability process. Illustratively, the entitlement vector can set entitlement to use X resources which can be limited by the operating system for example by reduced weighting or setting of maximum allowed resources. The entitlement vector can also be limited according to usage, wherein a thread using an inordinately large amount of resources can be limited when the high usage is detected or predicted.

The entitlement vector function F_(i)(w_(i), EV_(i), v_(i)) of weight (w_(i)), entitlement vector (EV_(i)), and resource volume (v_(i)) can be either linear or non-linear.

The entitlement vector enables association of scheduling with functions. The entitlement vector further enables association of priority with functions.

One of the challenges in allocating resources is the potential for highly unpredictable changes in resource demand. For example, minor changes in workload can result in substantial variation in performance. Another challenge is unpredictable behavior in response to context switches from one process to another. One technique for dealing with these challenges is making a library call as a technique for determining whether a context switch occurred or, if not expecting to make a library call, perform an action that randomizes priority. If degradation results from making the library call, then performance can be monitored to determine whether performance is reduced. If so, priority of the threads can be randomized. Example techniques for randomization can include a Boltzmann search, simulated annealing, hop-around, other lateral computing techniques, and the like. A Boltzmann search can be performed by a Boltzmann machine, a stochastic recurrent neural network that is capable of learning internal representations and solving combinatoric problems. Simulated annealing is a computer technique used for answering difficult and complex problems based on simulation of how pure crystals form from a heated gaseous state. Instead of minimizing the energy of a block of metal or maximizing strength, the program can minimize or maximize an objective relevant to the problem at hand, specifically randomization to attain stable performance. In a hop-around technique, priority or other parameters can be bounced around to determine a local maximum but not global optimum. Search optimizations can be used to determine whether truly at a maximum value. The new results can be compared with an old optimum.

In some embodiments, a supervisor circuit, for example for thermal and/or overvoltage protection, can modify the entitlement vector.

Entitlement Vector for Power Control Monitoring.

The entitlement vector, for example in combination with a usage vector, can be used for monitoring power control. In various embodiments, power control monitoring can be performed remotely or locally, possibly by the operating system.

In an example embodiment, a user can supply an entitlement vector using instructions, for example by specification of the beginning and end of a function. The entitlement vector can be used in association with a performance monitoring unit which monitors and determines other entitlement vectors. In various embodiments, the entitlement vectors can be maintained separately or combined into a single effective entitlement vector.

Context Switches.

Context switches can be defined as switches from one process to another. In contrast, a thread can typically be considered limited to a single context. Standard threads and mock threads share resources including context and can have multiple processes, multiple threads within the same privilege level technically. However, a threading library and threading operating system can be created wherein threads are not limited to the same context. Threads can comprise simply a stack and an instruction pointer, and can run in the same address space, for example threads can run as different users in the same address space. In a case of multiple users accessing the same database, if the database is a shared-memory database, software or an interpreter can be responsible for ensuring that unauthorized user(s) cannot access certain data. In the case of users assigned different privilege levels or different threads in the same virtual memory address space assigned different privilege levels, different registers are assigned to particular users and/or threads, and thus switches between users and/or threads are context switches.

Privileges can be associated with a page, a page table, an actual physical memory address, a virtual memory address, and the like.

Combining Capabilities and Entitlement.

In some embodiments, the capabilities vector and the entitlement vector can be merged. In some aspects of operation, entitlement can be considered to be a capability. With entitlements specified, the associated performance capabilities and management of associated capabilities prevents unauthorized access to data and/or resources, and prevents system takeover, unless specifically allowed or enabled by a system call, improving security and enabling denial of service to attacks.

Merged capabilities and entitlement can be used to prevent microarchitectural denial of service. Denial of service is typically considered to arise from a hacker on a network blocking access by using up all or a substantial part of network bandwidth. For example, when operating on a virtual machine in a cloud computing platform (such as Amazon Elastic Compute Cloud (EC2)) a job can be run that thrashes the cache, resulting in an architectural denial of service in response. Preventative remedies can include checking for performance counters and preventing such unauthorized accesses. Microarchitectural remedies can also be used such as implementing microarchitectural covert channels in which, for various types of code, secret keys running on the same virtual machine can be detected. Similarly, microarchitectural covert channels can be used to monitor timing of code to detect intrusion and to detect whether a bit is set in a particular bit position which may indicate intrusion. Microarchitectural techniques can thus include timing channels and covert channels for use whenever a shared resource is to be modulated. Covert channels can be applied, for example, in modulating a disk arm, detecting seeks on a file system.

In various embodiments, operations implementing and using the entitlement vector can be executed by software in a processor, by microcode, in logic, in hardware, or the like.

Hardware Threading.

Several aspects of hardware threading are currently implemented in processors such as CPUs. Simultaneous threading (SMT), hyperthreading, or simultaneous hyperthreading relate to hardware execution of two or four threads selected for running at any time, managed according to many fine-grained scheduling decisions. In a cycle, two threads are selected at instruction fetch, typically at the front of the pipeline and hardware determines which of the two thread's instructions to fetch. An instruction for each of the threads pass to an out-of-order machine within which the instructions are running concurrently. For example, an arithmetic logic unit (ALU) instruction from thread 1 and a memory instruction from thread 2 can run simultaneously.

Another type of hardware threading is interleaved multithreading (IMT) which removes all data dependency stalls from the execution pipeline. One thread is relatively independent from other threads so the probability of one instruction in one pipeline stage needing an output from an older instruction in the pipeline is low. IMT is conceptually similar to pre-emptive multi-tasking used in operating systems.

In contrast to CPU multithreading which handle relatively few threads (typically two or four threads), graphics processing units (GPUs) are stream processors for computer graphics hardware and manage hundreds or thousands of threads, thus using much more sophisticated scheduling. When blocking occurs, for example on a cache miss such as from a memory reference, a very large number of threads are blocked. Threads are chosen for execution on massively parallel thread arrays. In a typical arrangement, a processor has approximately 64,000 threads of which only about a thousand execute at one time. Underlying operations during execution include scheduling, addressing cache misses, and the like. Rather than scheduling from a memory pool, GPUs schedule instructions for execution from a very large pool of threads, waiting for memory to become available to run the next thread.

A CPU can be configured for a CPU thread hierarchy which includes a currently running list and a pool of non-running threads enabled to receive information pertinent to computational limits from devices or components such as special-purpose hardware.

Computational Limits

A limit on computation can be imposed according to setting of priority level which is, in turn, based on available resources. One example resource that can be monitored to set limits on computation is the battery. Limits on computation can be imposed based on battery consumption, battery life remaining. Computational limits can be addressed via a framework of setting capabilities, for example specifying a capability to execute on selected processing resources. In an example implementation, the capability can be set up in metadata.

Addressing computational limits can be fairly complex, involving not only information from monitored resources but also user input. For example, a determination by hardware of low battery level and associated limited battery life can be overridden by a user who may request a software application to run in anticipation of being able to soon recharge the battery at a line power source.

Performance Capabilities

A performance capabilities framework can be defined to address handling of a pool of available resources. A thread pool pattern can be configured wherein a number of threads are created to perform a number of tasks which are typically organized in a queue. Usually, the number of tasks is greater than the number of threads. A thread upon completing an associated task will request the next task from the queue until all tasks have completed. The thread can then terminate or become inactive until new tasks are available. The number of threads can be tuned to improve performance, and can be dynamically updated based on the number of waiting tasks. Increasing the size of the thread pool can result in higher resource usage.

A hardware scheduler can respond to any countable or measurable operating condition or parameter, for example electrons, constraints, frequency, cycles, power, voltage, and the like, to control the thread pool and pool of resources. Two highly useful conditions or parameters for monitoring are power and cycles, which are the basis for other measurable phenomena. Monitoring of operating conditions can be performed in hardware or via software call.

Furthermore, software can associate capabilities with particular objects such as libraries.

In an example embodiment, a software model can be configured to use and enforce performance capabilities. In a relatively simple operation, if power is too low, then the software can limit the maximum number of threads or other capabilities. For example, in a cell processor case the number of threads can be limited to less than 1000. Fundamentally, software can disable functionality if sufficient power is unavailable for scheduled operations.

In another example, a sensor or sensors can detect whether battery bias voltage level is recovering too slowly or, similarly, a thermistor can indicate a battery is too hot which may indicate operating at too aggressive a level. A bit or bits can be set indicating the recovery time is too long. The set bit(s) can be used to throttle the maximum thread hopping rate in the case of a CPU with two threads. The bits disallow a thread hop and set an allowable rate of thread hopping; or perhaps allow thread hopping which creates slowing but saves power.

An example of performance capability monitoring and management can be implemented in a CPU with four process threads each having instruction pointers. One of the four threads is selected to execute for next instruction cycle. Various types of information can be monitored to determine which thread to select including recent demand for power, memory, CPU cycles, and the like. For example, a process can be a resource glutton and allocated fewer resources to enable other processes priority. Information is available relating to recent performance, requested performance, and acceptable performance (niceness).

Another option is to use a “NICE” instruction which can be used to adjust the priority level of predetermined instructions, enabling the instructions to be run in the background at a convenient time. For example, if a processor or battery is running too hot, the NICE instruction can reduce the urgency of executing code. In a particular example implementation, the NICE instruction can change a multiplier and step of a decay algorithm.

High and low capabilities can be specified. For example, a particular software routine can sometimes, although rarely, use floating point operations so the capability for such routines can be set low. Operations performed by software can include monitoring, configuring parameters, and the like.

A predictive hint can also be used to allocate resources. For example, a software routine can use a hint a prediction of a significant amount of floating point usage. A HINT instruction can be included in the routine. In another version, at the beginning of a library function, code can be inserted to enable predictive preferential scheduling. The HINT instruction can be part of the library, for example at the beginning, or associated with the library. Code can be inserted in the library, such as at the beginning of a library function requesting particular resources, for example for preferential scheduling. In one example form, a call to a system call can request the operating system to allocate more resources. In another example form, a hint instruction can be sent to hardware to implement the hint and the hardware responds by using the hint in hardware scheduling, such as push, pop, pull, stack, or the like. The hint instruction typically has no direct effect on program execution. The program will run correctly except for changes in performance and battery life.

Predictive hints can also be implemented other than with a hint instruction. Rather than an instruction, the hint may be part of the data structure. For example, X number of bits can relate to expected capabilities to which a process can be entitled such as a vector or a structure. Software can determine information for a performance descriptor, then fills in the data so that metadata of a descriptor determines importance of the performance descriptor.

Accordingly, predictive hints can be implemented in hardware, software, the instruction set architecture, or a combination of configurations. Hardware is typically more constrained than a software implementation. A software library enables the hint to be passed in a linked list of hash trees for passage into hardware, for example as a 128-bit or 256-bit register. Such an implementation can be implemented in an application programming interface (API) but sufficiently simple to be part of hardware. Thus, the API can be designed, then simplified sufficiently to put into hardware.

Capabilities can be used to implement security. Typically, a system has only a few predetermined capabilities. However, a system can be configured in which every memory addressing register is assigned a capability. If the register specifies a capability to access the associated memory location, the location can be accessed. Otherwise, access is prohibited, for example producing a fault or incrementing counter or accumulator which can be noted in an intrusion vector. For any aspect related to security, if a test is failed, the counter is incremented and placed in the intrusion vector.

An instruction can be specified in an instruction set which sets a capability. In various embodiments, the instruction can be implemented in software, hardware, the operating system, or the like. The instruction can operate in association with a capabilities vector. In some embodiments, the instruction can also or otherwise operate in association with a hint vector.

The capabilities vector can be associated with a pointer, an address, and an object. A highly basic capability is a lower bound and an upper bound. Other more complex capabilities can be implemented. In various implementations, the capabilities vector and the entitlement vector can be separate, or can be combined. Merging the capabilities vector and the entitlement vector enables software structuring.

The capabilities vector can be used to enable fine-grained permission. Fine-grained permission facilitates operations of multiple users or entities in a shared memory data base, enabling the multiple users to access storage such as disk and to perform system calls, but limit access to data only to the user who owns the data or is authorized to access the data. Another benefit of fine-grained permissions is an ability to facilitate and improve security while multiplexing software threads onto hardware threads. In an example configuration, 64000 software threads are multiplexed onto only four hardware threads. Only a small portion of the software threads are running at one time with the remaining software threads idle. The software threads alternately run on the hardware threads, then go back to idle to allow other software threads to run.

A classic security hole in a database management is the inability to limit access to data for the different software threads multiplexed onto the hardware threads. A database typically does not allocate a hardware thread to a user. In typical database operation, a request is received and placed on a software thread so that users are multiplexed onto the software threads, an action giving very little protection. Better protection is attained by allocating each user to a separate process, a technique that is prohibitively expensive because the threads are expensive. Multiplexing the users onto software threads leaves a security hole because access to a particular user's data allowed while running the user's software thread on a hardware thread is not removed when the user's software thread is swapped out from the hardware thread. The access permission remains so access remains enabled. The depicted system solves the security hole by using capabilities.

In a non-capabilities system, any of the software threads can access the entire database at any time, including any data that has been placed in shared memory (unless a call out is made through the operating system to enable any of the threads to create I/O, a prohibitively expensive operation). Simple databases only have one peer thread so all threads can access any data. Many typical databases have 64 threads that can access any data in shared memory but only four threads that can access I/O. These systems sometimes have different privilege levels (for example, Intel's rings 0, 1, 2, 3) so specify compatibility. Most code runs in ring 3 and the kernel in ring 0. Rings 1 and 2 are generally not used although several databases have features that can run in ring 1 and ring 2 but are rare and used primarily for benchmarks (a benchmark hack).

In an example implementation that uses capabilities, generally a processor has 16 or 32 registers, some of which are addressing registers. A capability can be loaded to enable access to selected threads. A capability can be loaded to access a particular thread (owned by another user) into hardware thread 0, enabling running as that user. This is one type of context switch—to change the software thread that is executing on hardware thread 0. The capability registers can then be changed, a minor context switch and a change in privilege level. The action does not invalidating translation lookaside buffer (TLBs), but rather moves the permissions out of the TLB. The access control model is also changed. Capabilities can be used in this manner to change operations, guaranteeing only access to data and/or resources for which access is allowed by a permission-granting entity. Capabilities can guarantee a transitive exposure of only the data and/or resources of another user according to granted authorization. The technique is deterministic so that, by inspection, which accesses are possible is known.

Translation Lookaside Buffer TLB.

A translation lookaside buffer (TLB) is a processor cache which can be used by memory management hardware to improve virtual address translation speed. Processors use a TLB to map virtual and physical address spaces. TLB are used widely in hardware which uses virtual memory.

The TLB can be implemented as content-addressable memory (CAM), using a CAM search key which is the virtual address to produce a search result which is a physical address. If the TLB holds the requested address—called a TLB hit, the CAM search quickly yields a match and the retrieved physical address can be used to access memory. If the TLB does not hold the requested address—a TLB miss, the translation proceeds by looking up the page table in a process called a page walk. The page walk is computationally expensive process, involving reading contents of multiple memory locations and using the contents to compute the physical address. After the page walk determines the physical address, the virtual address to physical address mapping is entered into the TLB.

A stream monitoring instruction can improve efficiency and performance of the TLB by supporting a software predictor. The instruction can be used to monitor misaligned or split access. A memory access is aligned when the data item accessed is n-bytes long and the data item address is n-byte aligned. Otherwise, the memory access is misaligned. Monitoring for misaligned access can be performed by hardware, resulting in a trap, or somewhat less efficiently by software. In practice, monitoring for misaligned access has a high false positive rate, for example approaching 90%. A predictor can be configured, for example by micro-architecture adjustment, to indicate whether the misaligned access hits are accurate.

A processor can be configured to change voltage, frequency, and/or power based on the number of cache misses. For example, logic can detect an abundance of cache misses or other performance problems, the voltage can be varied such as increased to cure the problem. The logic can dynamically adjust operating parameters according to the amount of traffic. Frequency and voltage can be adjusted, for example whenever a change in frequency occurs, the voltage can be modified accordingly.

Logic in a memory interface can detect when memory is full to some threshold level, for example 70%. If memory is full to the threshold level and a high level of access is occurring, memory speed can decrease. In response, the frequency and voltage of operation can be dynamically increased to maintain a desired memory speed.

In various embodiments, logic for performing dynamic adjustment can be positioned in memory, in a logic interface, in a processor. A hardware configuration can optimize by active adjustment, redirection, or possibly a combination of adjustment and redirection. For example, a computation-intensive process with many instructions to be executed rapidly can be addressed by running the processor at a higher rate by increasing operating frequency and voltage, and/or some of the burden can be shifted to components other than the processor to maintain processor execution at a lower frequency.

Infrastructure.

An infrastructure configured to support multiple processors in a system can have a shared memory and message passing between threads, processes, processors, and the like. Operating systems (OS) can include various mechanisms to enable message passing, for example pipelines, daemons that use sockets, loopback, and the like. Any suitable number of processors can be supported in the system, from relatively small systems with few processors to large scale systems with hundreds of thousands or millions of processors. In a typical large scale system, the multitudes of processors communicate via fat trees which support the large amount of bandwidth demanded by the large scale system. The amount of bandwidth in different positions in the tree is variable, depending on traffic. In various other configurations, the many processors can communicate via meshes or buses, via Gigabit Ethernet, via CDMA-CE (Code Division Multiple Access—series CE), and the like. In large interconnects, the number of processors determines what functionality is attainable. For example, for more than about 1000 processors, memory can no longer be shared. At around 100 processors, memory space can be shared but cache-coherence is typically not possible and memory is thus non-cache-coherent shared memory. Cache-coherence is generally considered to cause problems for more than about sixteen processors so that fewer processors at a first level can have cache-coherent shared memory.

For a supercomputer or other system with the large number of processors, for example more than about 1000, for which memory is non-shared, Message Passing Interface (MPI) can be used for communication. MPI uses multiple threads but does not use shared memory. The MPI multiple threads are all part of local shared memory, but no global shared memory exists. The amount of local shared memory is limited, resulting in a communications bottleneck. Supercomputer memories use Message Passing Interface (MPI) which, to a first order, includes a limited number of instructions such as send some location, buffer, end buffer, and receive some entity, buffer, end buffer, and the like. MPI is an application programming interface (API) and is thus a library call. The received entity can be, for example, a channel connecting the sender and the receiver, although channels are rarely used in MPI since channels do not scale beyond about a thousand processors. Accordingly, MPI can use commands with masks which identify which processors are to receive a message. A difficulty with MPI is that different code must be written, and a different core engine and interface, for small-scale and large-scale parallelism. Thus, send-and-receive communication such as is used by MPI is suitable if memory is shared.

What is desired is a technique for expanding send-and-receive communication more broadly. In accordance with system and method embodiments, a communications application programming interface (API) can be created that enables communication between different types of threads and hides that the threads are sharing memory. The communications API can enhance functionality of a Transmission Control Protocol (TCP) socket. The TCP socket, also termed an Internet socket for network socket, is an endpoint of a bidirectional inter-process communication flow across and Internet Protocol (IP)-based computer network such as the Internet. In some embodiments, the communications API can also incorporate functionality of MPI into that of a TCP socket. In a distributed system, a processor can communicate with a Network Interface Controller (NIC) and a send instruction puts data on a queue to send to the NIC and pass through the routing network to a specified destination. The communications API can perform communications via TCP-IP, in some configurations optimizing aspects of TCP-IP such as by ordering packets, and also via other protocols. The communications API can include send-and-receive functionality, and include one or more channels, which is operable with TCP-IP. Some of the channels can be shared memory in the form of a buffer with a counter. Some channels can connect to the NIC, some channels to TCP-IP, and some channels can have other functionality. In some embodiments, the communications API can support different types of channels. One example of a channel type is simply registers. Another type of channel can run two hardware threads with a pipeline coupled between the two threads.

The communications API can be adapted to handle the possibility of overflow. For example, for a channel implemented as shared registers, filling the registers to capacity can cause overflow to memory, which can call a trap or exception.

Another technique for expanding send-and-receive communication more broadly can comprise creating a message passing infrastructure in hardware. Speed is one advantage of forming the message passing infrastructure in hardware. For example in the case of a system call, conventionally a slow operation, hardware can be configured to support a send instruction operable to check a bit in a channel selected for the send operation to determine whether the channel is available and, if not, performing a system call by faulting to the system call. Thus, the hardware can be configured to pass execution through the operating system in response to desired conditions.

In an example embodiment, the message passing infrastructure hardware can be configured to avoid passing execution through the operating system, for example to avoid the context switch inherent with going to the operating system. In another example embodiment, the hardware can be configured to include a message passing paradigm and one core can be run in ring 0 to enable access to operating system calls. The operating system is not a separate process but rather a library call in a library. Another option is to allocate a hardware thread to the operating system.

The operating system performs a ring 0 call via a system call which, in terms of hardware implementation, can be a function call to change a bit, granting permission to change the bit, and identification of the stack from which the OS is operating. In one example implementation, the user can explicitly control the stack, for example by placing the operating system stack in a different register. In another implementation, a system call can change the instruction pointer and the stack.

The message passing infrastructure hardware implementation can, for example, include support for send and receive calls. The hardware implementation can enable faster operating speed. For particular special cases, hardware send and receive calls can be faster than a shared library call. Send and receive are global messages, supporting point-to-point communication in two-party messaging. In some embodiments, the hardware implementation can support put and get APIs to enable sending a message to a designated address asynchronously or synchronously, as selected. The designated address is in a global address space partition, not local load-store. The put and get APIs can handle access to shared physical memory by sending a request to the master or server for the designated memory location. The memory is hashed across all the global memory space. In the illustrative implementation, get and put can be system calls rather than instructions, thus facilitating global access. Because the get and put system calls are relatively resource-expensive, efficiency can be attained by communicating blocks of data, for example 64K, at one time rather than for individual bytes.

For a cache-coherent shared memory that is accessed using the put and get system calls, different schemes can be used depending on what entities are communicating. For entities which share memory, the get and put calls simply access the shared memory. For entities separated by substantial physical or network distances, the get and put calls, if unable to fulfill the call by shared memory access, by running through the same router or similar local actions can send the calls to the network interface to relay remotely, for example across the world. For shared memory, whether cache-coherent or cache-noncoherent, the put and get, and send and receive operations are relatively simple since all entities can access the same memory. More complexity arises when memory is not shared. In various embodiments, when memory is not shared different schemes can be used such as copy-on-write (copying the shared memory), creating in remote memory the shared memory that shares the same capability, an implicit in the put and get, or other options.

The message passing infrastructure thus can include hardware support for the various put and get, send and receive, or the like system calls or instructions. The message passing infrastructure can be configured to enable two threads to be forked and used with the put and get calls to enable optimum speed performance. The send and receive, and put and get instructions, as described, consume two hardware threads or might consume two passive threads.

In some embodiments, the put-get and send-receive can be combined with access bits which designate memory to which the sender is allowed access. Passing along the access bits can enable a reduction in overhead while enabling protection across processes. The overhead of switching or sending a message drops significantly because the receiver already knows the memory to which the sender has access.

Referring to FIGS. 1A, 1B, 1C, and 1D, schematic block diagrams show embodiments of an information handling apparatus 100 adapted to facilitate resource allocation. An entitlement vector can be used as a hint for an object. Logic (or manual determination) can ascertain and/or specify what resources/capabilities are to be used by an object. Information can be included, for example at the beginning of an object, to request particular resources in terms of the entitlement vector. In some embodiments, a code can be included in an object such as a library, to request particular resources. The request can be a request for preferential scheduling, especially with regard to resources. Such code may be a hint, a data structure, a set of one or more bits, etc. in the library. In an illustrative embodiment, an information handling apparatus 100 can comprise an entitlement vector 104 operable to specify resources 108 used by one or more objects 102 of a plurality of a plurality of objects 102, and logic 106 operable to issue a hint instruction 114 based on the entitlement vector 104 for usage in scheduling the resources 108.

In some embodiments and/or implementations, the hint instruction 114 can be used in compiled code. In various other embodiments, the hint instruction 114 can be applied at runtime. For a hint instruction 114 used with a compiler, when the compiler converts the hint instruction 114 to executed instructions, the hint instruction 114 can be inserted into the code. Hint instructions are a form of explicit hints, which ensure that a particular object 102 is allocated specified resources 108 or a specified portion of the resources 108. In other applications, a hint instruction 114 can ensure that the specified resources 108 or a specified portion of the resources 108 allocated to the object 102 does not change until countermanded by a subsequent “unhint” instruction. In either case, the hint instructions can act as no-operation instructions, except that the usage of resources 108 is controlled.

For a hint instruction 114 which is applied by a compiler, resources 108 can be allocated in a predetermined manner or in compliance with a programmed analysis of program and resource structure. The entitlement vector 104 enables actual tracking of resource usage during runtime, enabling usage history to be used for predicting future usage and allocation of resources 108 among the plurality of objects 102.

Resource allocation can be handled via various architectural aspects of a system including microarchitecture, instruction set architecture (ISA), operating system, and library calls. Software can associate capabilities with particular library functions or software objects. This software can be in the form of compiler, operating system, or others. The operating system can, for example, create a profile for any process running floating point operations and give that entitlement. Resources allocated include processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, other hardware, and the like. Resources further include power, cycles, and the like. Thus, in various embodiments of the information handling apparatus 100, the plurality of resources 108 can comprise physical/logical resources 110 and operational resources 112.

The physical/logical resources 110 of a particular information handling apparatus 100 can be one or more of physical and/or logical instances of processors 116, central processing units (CPUs) 117, graphics hardware 118, network controllers 119, memory 120, memory management 121, hardware 122, microarchitecture 123, sound cards 124, video cards 125, network interfaces 126, instruction set architecture (ISA) 127, library calls 128, library functions 129, software objects 130, compilers 131, operating systems 132, and the like.

Resources can be allocated in response to any countable or measurable operating condition or parameter, for example electrons, constraints, frequency, cycles, power, voltage, and the like, to control the thread pool and pool of resources. Two highly useful conditions or parameters for monitoring are power and cycles, which are the basis for other measurable phenomena. Monitoring of operating conditions can be performed in hardware or via software call. Thus, in various embodiments and/or applications of the information handling apparatus 100, the operational resources 112 can be one or more entities or phenomena including, for example, power 133, voltage 134, current 135, electrons 136, frequency 137, execution cycles 138, battery consumption 139, battery life 140, constraints 141, temperature 142, and measurable phenomena 143, and the like.

Power is typically global to a process or to an individual CPU. Use of capabilities enables more refined control of power, for example power can be made specific to an object or library routine. With power global to a process, the process will continue to run in absence of a fault, a page fault, a disk access, or the like, and will run until blocked by the operating system scheduler, allowing high power consumption. Use of capabilities enables power to be controlled on a per-hardware thread granularity. Use of capabilities further enables power to be controlled specific to a per-hardware thread granularity for throttling power. Accordingly, the information handling apparatus 100 can be configured wherein the entitlement vector 104 is operable to specify resources 108 and capabilities 144 used by the at least one object 102.

Similarly, in some embodiments of the information handling apparatus 100, the entitlement vector 104 is operable to ascertain and specify resources 108 and capabilities 144 used by the one or more objects 102.

Logic, such as in hardware or software, or a manual determination, can ascertain and/or specify what resources/capabilities are to be used by an object. Some embodiments of the information handling apparatus 100 can further comprise logic 146 operable to ascertain and specify the resources 108 used by at least one object 102 of a plurality of a plurality of objects 102, and operable to set the entitlement vector 104 in accordance with the ascertained and specified resources 108.

Similarly, in various embodiments of the information handling apparatus 100, the logic 146 operable to ascertain and specify the resources 108 can be operable to ascertain resources 108 and/or capabilities 144 used by an object 102 of the plurality of objects 102 and further operable to set the entitlement vector 104 according to the ascertained resources 108 and/or capabilities 144.

In some embodiments and/or applications of the information handling apparatus 100, the hint instruction 114 can activate the entitlement vector 104 as a request for resources 108 and can be applied to hardware 122 which uses the entitlement vector 104 for scheduling of the one or more objects 102 of a plurality of a plurality of objects 102.

Also in some implementations of the information handling apparatus 100, the hint instruction 114 can be operable to power down hardware 122 in a condition that the entitlement vector 104 indicates the hardware 122 is not used by the one or more objects 102 of a plurality of a plurality of objects 102.

In another aspect of operation, the hint instruction 114 can be operable as a predictive hint designating resources 108 which are predicted to be used by the one or more objects 102 of a plurality of a plurality of objects 102.

Libraries or other objects (and associated threads) can request entitlements. Objects use resources to execute. For example, a networking library has greater usage of a network resource than other libraries or objects. Particular entitlements may be assigned to individual library routines using an entitlement vector, which can indicate expected capabilities to which an object may be entitled. Entitlements may be assigned via the entitlement vector. An entitlement vector may be used when selecting a thread for execution in a multi-threading environment in terms of aspects such as priority. Accordingly, in some embodiments and/or applications of the information handling apparatus 100, for example as shown in FIG. 1B, can include a library 148 comprising a plurality of functions 150 and components 152 operable to handle the plurality of objects 102. The entitlement vector 104 can be operable to assign entitlement 154 to at least one of a plurality of resources 108 to selected ones of the plurality of functions 150 and components 152. The entitlement 154 can be specified as predetermined rights wherein a process 156 of a plurality of processes 156 is entitled to a predetermined percentage of operational resources 112.

In some implementations, entitlement 154 can be set according to a predetermined algorithm which defines a “fair share” for the processes, for example round-robin, history-based, randomized, and the like, which are efficient since a large history need not be accumulated. Thus, an efficient and inexpensive hardware implementation is possible. A particular scheme can allocate modulo by bit to avoid starving a process with lower entitlement 154.

In some embodiments and/or applications of the information handling apparatus 100, the logic 146 operable to ascertain and specify the resources 108 can be operable to ascertain resources 108 and/or capabilities 144 included in a library 148. The logic 146 can be further operable to request the ascertained resources 108 and/or capabilities 144.

Also in some implementations of the information handling apparatus 100, the logic 146 operable to ascertain and specify the resources 108 can be operable to ascertain resources 108 and/or capabilities 144 included in a library 148. The logic 146 can be further operable to request preferential scheduling of the ascertained resources 108 and/or capabilities 144.

The information handling apparatus 100 can be configured to support prioritized entitlements and resource allocations upon calling selected libraries. A typical embodiment includes such support in software, although hardware support can also be implemented. For example, a network library can include library routines adapted for heavy network usage so that resources giving access to the network are more important processes to schedule. More entitlements are allocated to network-related resources. Libraries can also be configured to handle secondary priorities that change dynamically. For example, a sound card can have a greater power priority and have a pattern of operation wherein a process uses a network card and possibly other subsystems in combination with the sound card. Thus, the network card and other subsystems can also be allocated a higher priority. Similarly, for a process which performs less modeling and number computation in lieu of higher input/output operations and sending of information, a higher level of priority can be allocated to input/output resources.

A library is a collection of resources used to develop software, including pre-written code and subroutines, classes, values, or type specifications. Libraries contain code and data to enable services to independent programs, encouraging code sharing, modification, and distribution. Executables can be both standalone programs and libraries, although many libraries are not executable. Executables and libraries make references known as links to each other through the process known as linking, for example by using a linker.

Referring to FIG. 1C, some embodiments of the information handling apparatus 100 can further comprise resource allocation logic 158 operable to dynamically modify the entitlement vector 104 according to usage of resources 108 by at least one object 102 of a plurality of a plurality of objects 102 wherein the hint instruction 114 supplies the entitlement vector 104.

In further embodiments, the information handling apparatus 100 can further comprise a scheduler 160 operable to schedule a process 156 of a plurality of processes 156 based on entitlement 154.

Referring to FIG. 1D, a scheduler or chooser can monitor entitlement values and schedule the next highest priority process. A particular scheme can allocate modulo by bit to avoid starving a process with lower entitlement. In some conditions, the level of entitlement can be overridden or adjusted. Entitlement can be set according to a predetermined algorithm which defines a “fair share” for the processes, for example round-robin, history-based, randomized, and the like, which are efficient since a large history need not be accumulated. Thus, an efficient and inexpensive hardware implementation is possible. Accordingly, some embodiments of the.

A field of the entitlement vector can be a chooser/thread selector. The entitlement vector can be used by the chooser/scheduler, which includes logic that performs operations based on a single entitlement vector or possibly relative entitlement vectors. Each Instruction Pointer (IP) or thread can have an associated entitlement vector. For example instruction pointers, for IP1, IP2, IP3, IP4, then four entitlement vectors can be allocated. Chooser/scheduler logic considers the entitlement vector when scheduling the next thread for computation. The logic informs the chooser/scheduler about how to make the selection. The logic can perform selected functions to make the choice and for scheduling, for example by elevating or decreasing priority of a thread. Thus, embodiments of the information handling apparatus 100 can be configured as a multi-threaded environment 162 and can further comprise a scheduler 160 operable to schedule a thread 164 of a plurality of threads 164 in the multi-threaded environment 162 based on entitlement 154.

A performance capabilities framework can be defined to address handling of a pool of available resources. A thread pool pattern can be configured wherein a number of threads are created to perform a number of tasks which are typically organized in a queue. Usually, the number of tasks is greater than the number of threads. A thread upon completing an associated task will request the next task from the queue until all tasks have completed. The thread can then terminate or become inactive until new tasks are available. The number of threads can be tuned to improve performance, and can be dynamically updated based on the number of waiting tasks. Increasing the size of the thread pool can result in higher resource usage.

A limit on computation can be imposed according to setting of priority level which is, in turn, based on available resources. One example resource that can be monitored to set limits on computation is the battery. Limits on computation can be imposed based on battery consumption, battery life remaining. Computational limits can be addressed via a framework of setting capabilities, for example specifying a capability to execute on selected processing resources. In an example implementation, the capability can be set up in metadata.

A sensor or sensors can detect whether battery bias voltage level is recovering too slowly or, similarly, a thermistor can indicate a battery is too hot which may indicate operating at too aggressive a level. A bit or bits can be set indicating the recovery time is too long. The set bit(s) can be used to throttle the maximum thread hopping rate in the case of a CPU with two threads. The bits disallow a thread hop and set an allowable rate of thread hopping; or perhaps allow thread hopping which creates slowing but saves power.

The entitlement vector can be used to enable dynamic runtime updating of hints in program instructions. The entitlement vector can be used to track resource usage by an object or process and to develop hint performance data in terms of performance changes resulting from application of a hint instruction. Through updating of the entitlement vector and application of the entitlement vector to instruction execution, dynamic hint updates are applied to instructions. Accordingly, referring to FIGS. 2A, 2B, and 2C, schematic block diagrams show embodiments of an information handling apparatus 200 adapted to allocate resources based on a received hint instruction. Accordingly, in an illustrative embodiment, an information handling apparatus 200 can comprise logic 206 operable to receive a hint instruction 214 comprising an entitlement vector 204 that specifies resources 208 used by at least one object 202 of a plurality of a plurality of objects 202. The information handling apparatus 200 can further comprise resource allocation logic 258 operable to dynamically modify the entitlement vector 204 according to usage of resources 208 by the at least one object 202 of the plurality of a plurality of objects 202.

In various embodiments of the information handling apparatus 200, the plurality of resources 208 can comprise physical/logical resources 210 and operational resources 212. The physical/logical resources 210 of a particular information handling apparatus 200 can be one or more of physical and/or logical instances of processors 216, central processing units (CPUs) 217, graphics hardware 218, network controllers 219, memory 220, memory management 221, hardware 222, microarchitecture 223, sound cards 224, video cards 225, network interfaces 226, instruction set architecture (ISA) 227, library calls 228, library functions 229, software objects 230, compilers 231, operating systems 232, and the like. In various embodiments and/or applications of the information handling apparatus 200, the operational resources 212 can be one or more entities or phenomena including, for example, power 233, voltage 234, current 235, electrons 236, frequency 237, execution cycles 238, battery consumption 239, battery life 240, constraints 241, temperature 242, and measurable phenomena 243, and the like.

In some embodiments of the information handling apparatus 200, the entitlement vector 204 is operable to ascertain and specify resources 208 and capabilities 244 used by the at least one object 202.

In some embodiments and/or applications, the information handling apparatus 200 can further comprise logic 246 operable to ascertain and specify the resources 208 used by at least one object 202 of a plurality of a plurality of objects 202. The logic 246 can be further operable to set the entitlement vector 204 in accordance with the ascertained and specified resources 208.

In an example embodiment of the information handling apparatus 200, the logic 246 operable to ascertain and specify the resources 208 can be operable to ascertain resources 208 and/or capabilities 244 used by an object 202 of the plurality of objects 202. The logic 246 can be further operable to set the entitlement vector according to the ascertained resources 208 and/or capabilities 244.

Similarly, in some embodiments of the information handling apparatus 200, the logic 246 operable to ascertain and specify the resources 208 can be operable to ascertain resources 208 and/or capabilities 244 included in a library and operable to request the ascertained resources 208 and/or capabilities 244.

The hint instruction 214 can have various aspects of operation. For example, the information handling apparatus 200 can be configured such that the hint instruction 214 activates the entitlement vector 204 as a request for resources 208 and is applied to hardware 222 which uses the entitlement vector 204 for scheduling of the at least one object 202 of a plurality of a plurality of objects 202.

In other embodiments and/or applications of the information handling apparatus 200, the hint instruction 214 can be operable to power down hardware 222 in a condition that the entitlement vector 204 indicates the hardware 222 is not used by the at least one object 202 of a plurality of a plurality of objects 202.

Similarly, the hint instruction 214 can be operable as a predictive hint designating resources 208 which are predicted to be used by the at least one object 202 of a plurality of a plurality of objects 202.

Libraries can also be configured to handle secondary priorities that change dynamically. For example, a sound card can have a greater power priority and have a pattern of operation wherein a process uses a network card and possibly other subsystems in combination with the sound card. Thus, the network card and other subsystems can also be allocated a higher priority. Similarly, for a process which performs less modeling and number computation in lieu of higher input/output operations and sending of information, a higher level of priority can be allocated to input/output resources. Accordingly, as depicted in FIG. 2B, an embodiment of the information handling apparatus 200 can further comprise a library 248 comprising a plurality of functions 250 and components 252 operable to handle the plurality of objects 202. The entitlement vector 204 can be operable to assign entitlement 254 to at least one of a plurality of resources 208 to selected ones of the plurality of functions 250 and components 252. The entitlement 254 can be specified as predetermined rights wherein a process 256 of a plurality of processes 256 is entitled to a predetermined percentage of operational resources 212.

Referring to FIG. 2C, an embodiment of the information handling apparatus 200 can further comprise a scheduler 260 operable to schedule a process 256 of a plurality of processes 256 based on the entitlement 254.

Similarly, in some embodiments the information handling apparatus 200 can further comprise a scheduler 260 operable to schedule a thread 264 of a plurality of threads 264 in a multi-threaded environment 262 based on the entitlement 254.

Referring to FIGS. 3A, 3B, and 3C, schematic block diagrams show embodiments of an information handling apparatus 300 adapted to determine usage of resources and use this determination to form a hint instruction. Accordingly, in an illustrative embodiment, an information handling apparatus 300 can comprise resource allocation logic 358 operable to determine resources 308 used by at least one object 302 of a plurality of a plurality of objects 302. The information handling apparatus 300 can further comprise logic 306 operable to set an entitlement vector 304 based on the determination of resources 308 and form a hint instruction 314 as a function of the entitlement vector 304.

In various embodiments of the information handling apparatus 300, the plurality of resources 308 can comprise physical/logical resources 310 and operational resources 312. The physical/logical resources 310 of a particular information handling apparatus 300 can be one or more of physical and/or logical instances of processors 316, central processing units (CPUs) 317, graphics hardware 318, network controllers 319, memory 320, memory management 321, hardware 322, microarchitecture 323, sound cards 324, video cards 325, network interfaces 326, instruction set architecture (ISA) 327, library calls 328, library functions 329, software objects 330, compilers 331, operating systems 332, and the like. In various embodiments and/or applications of the information handling apparatus 300, the operational resources 312 can be one or more entities or phenomena including, for example, power 333, voltage 334, current 335, electrons 336, frequency 337, execution cycles 338, battery consumption 339, battery life 340, constraints 341, temperature 342, and measurable phenomena 343, and the like.

In some embodiments, the information handling apparatus 300 can be configured wherein the resource allocation logic 358 is operable to ascertain and specify resources 308 and capabilities 344 used by the at least one object 302. The logic 306 operable to set an entitlement vector 304 can be operable to set the entitlement vector 304 based on the ascertained and specified resources 308 and capabilities 344 used by the at least one object 302.

Similarly, in some embodiments and/or applications, the information handling apparatus 300 can be configured such that the resource allocation logic 358 is operable to ascertain and specify the resources 308 used by at least one object 302 of a plurality of a plurality of objects 302. The logic 306 operable to set an entitlement vector 304 can be operable to set the entitlement vector 304 in accordance with the ascertained and specified resources 308.

In further embodiments, the information handling apparatus 300 can be formed such that the resource allocation logic 358 is operable to ascertain resources 308 and/or capabilities 344 used by an object 302 of the plurality of objects 302. The logic 306 operable to set an entitlement vector 304 can be operable to set the entitlement vector 304 according to the ascertained resources 308 and/or capabilities 344.

The hint instruction 314 can have various aspects of operation. For example, the hint instruction 314 can activate the entitlement vector 304 as a request for resources 308 and is applied to hardware 322 which uses the entitlement vector 304 for scheduling of the at least one object 302 of a plurality of a plurality of objects 302.

In other embodiments, the hint instruction 314 can be operable to power down hardware 322 in a condition that the entitlement vector 304 indicates the hardware 322 is not used by the at least one object 302 of a plurality of a plurality of objects 302.

Similarly, the hint instruction 314 can be operable as a predictive hint designating resources 308 which are predicted to be used by the at least one object 302 of a plurality of a plurality of objects 302.

In further embodiments and/or applications, as shown in FIG. 3B, the information handling apparatus 300 can be constituted wherein the resource allocation logic 358 is operable to ascertain and specify resources 308 and/or capabilities 344 included in a library 348. The logic 306 operable to set an entitlement vector 304 can be operable to request the ascertained resources 308 and/or capabilities 344.

The library 348 can comprise a plurality of functions 350 and components 352 can be operable to handle the plurality of objects 302. The entitlement vector 304 can be operable to assign entitlement 354 to at least one of a plurality of resources 308 to selected ones of the plurality of functions 350 and components 352. The entitlement 354 can be specified as predetermined rights wherein a process 356 of a plurality of processes 356 is entitled to a predetermined percentage of operational resources 312.

Referring to FIG. 3C, embodiments of the information handling apparatus 300 can be adapted to allocate and schedule resources according to usage. Accordingly, The information handling apparatus 300 can further comprise a scheduler 360 operable to receive the hint instruction 314 and schedule a process 356 of a plurality of processes 356 based on entitlement 354 specified by the hint instruction 314.

Similarly, the information handling apparatus 300 can be configured to include a scheduler 360 operable to receive the hint instruction 314 and schedule a thread 364 of a plurality of threads 364 in a multi-threaded environment 362 based on entitlement 354 specified by the hint instruction 314.

Referring to FIG. 4, a schematic block diagram shows embodiments of an information handling apparatus 400 adapted to receive a hint instruction and schedule resources accordingly. Thus, an information handling apparatus 400 can comprise logic 406 operable to receive a hint instruction 414 comprising an entitlement vector 404 that specifies resources 408 used by at least one object 402 of a plurality of a plurality of objects 402. In an illustrative embodiment, entitlement 454 as indicated by the entitlement vector 404 can be specified as predetermined rights wherein a process 456 of a plurality of processes 456 is entitled to a predetermined percentage of operational resources 412. The information handling apparatus 400 can further comprise a scheduler 460 operable to schedule the process 456 of the plurality of processes 456 based on entitlement 454 specified by the hint instruction 414.

In various embodiments of the information handling apparatus 400, the plurality of resources 408 can comprise physical/logical resources 410 and operational resources 412. The physical/logical resources 410 of a particular information handling apparatus 400 can be one or more of physical and/or logical instances of processors 416, central processing units (CPUs) 417, graphics hardware 418, network controllers 419, memory 420, memory management 421, hardware 422, microarchitecture 423, sound cards 424, video cards 425, network interfaces 426, instruction set architecture (ISA) 427, library calls 428, library functions 429, software objects 430, compilers 431, operating systems 432, and the like. In various embodiments and/or applications of the information handling apparatus 400, the operational resources 412 can be one or more entities or phenomena including, for example, power 433, voltage 434, current 435, electrons 436, frequency 437, execution cycles 438, battery consumption 439, battery life 440, constraints 441, temperature 442, and measurable phenomena 443, and the like.

In some embodiments, the information handling apparatus 400 can further comprise logic 446 operable to ascertain and specify the resources 408 including ascertaining resources 408 and/or capabilities 444 used by an object 402 of the plurality of objects 402. The logic 446 can be further operable to set the entitlement vector 404 according to the ascertained resources 408 and/or capabilities 444.

The hint instruction 414 can have various aspects of operation. For example, the hint instruction 414 can activate the entitlement vector 404 as a request for resources 408 and can be applied to hardware 422 which uses the entitlement vector 404 for scheduling of the at least one object 402 of a plurality of a plurality of objects 402.

In other embodiments, the hint instruction 414 can be operable to power down hardware 422 in a condition that the entitlement vector 404 indicates the hardware 422 is not used by the at least one object 402 of a plurality of a plurality of objects 402.

Similarly, the hint instruction 414 can be operable as a predictive hint designating resources 408 which are predicted to be used by the at least one object 402 of a plurality of a plurality of objects 402.

Referring to FIGS. 5A through 5H, schematic flow diagrams depict an embodiment or embodiments of a method operable in an information handling apparatus adapted for allocating resources. Referring to FIG. 5A, a method 500 for handling information can comprise specifying 501 resources used by at least one object of a plurality of a plurality of objects in an entitlement vector, and issuing 502 a hint instruction based on the entitlement vector for usage in scheduling the resources.

In various embodiments, the resources can comprise physical/logical resources and operational resources. The physical/logical resources can comprise at least one of a group consisting of physical and/or logical instances of processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems. The operational resources can comprise at least one of power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.

Referring to FIG. 5B, a method 505 for handling information can further comprise ascertaining and specifying 506 the resources used by at least one object of a plurality of a plurality of objects, and setting 507 the entitlement vector in accordance with the ascertained and specified resources.

In various embodiments and/or applications, as illustrated in FIG. 5C, a method 510 for handling information can further comprise ascertaining and specifying 511 the resources is operable to ascertain resources and/or capabilities used by an object of the plurality of objects. The method 510 can further comprise setting 512 the entitlement vector according to the ascertained resources and/or capabilities.

Various methods can deploy a hint instruction to perform different aspects of operation. For example, as shown in FIG. 5D, a method 515 for handling information can further comprise receiving 516 the hint instruction, and activating 517 the entitlement vector as a request for resources as specified by the hint instruction. The method 515 can further comprise applying 518 the entitlement vector to hardware, and using 519 the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.

In other embodiments and/or applications, as depicted in FIG. 5E, a method 520 for handling information can further comprise receiving 521 the hint instruction, determining 522 a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects, and powering 523 down hardware which is indicated as not-used.

Similarly, illustrated in FIG. 5F, a method 525 for handling information can further comprise receiving 526 the hint instruction, and using 527 the hint instruction as a predictive hint designating resources which are predicted to be used by the at least one object of a plurality of a plurality of objects.

Furthermore, referring to FIG. 5G, a method 530 for handling information can further comprise receiving 531 the hint instruction, supplying 532 the entitlement vector via the hint instruction, and dynamically modifying 533 the entitlement vector according to usage of resources by the at least one object of a plurality of a plurality of objects.

In additional embodiments, a method 535 for handling information can schedule resources based on the hint instruction. Accordingly, as shown in FIG. 5H, method 535 for handling information can further comprise specifying 536 entitlement as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources, and scheduling 537 a process of a plurality of processes based on the entitlement.

Referring to FIGS. 6A through 6F, schematic flow diagrams depict an embodiment or embodiments of a method operable in an information handling apparatus adapted to allocate resources based on a received hint instruction. Accordingly, in an illustrative embodiment, referring to FIG. 6A, a method 600 for handling information can comprise receiving 601 a hint instruction comprising an entitlement vector that specifies resources used by at least one object of a plurality of a plurality of objects, and dynamically modifying 602 the entitlement vector according to usage of resources by the at least one object of the plurality of a plurality of objects.

In various embodiments, the resources can comprise physical/logical resources and operational resources. The physical/logical resources can comprise at least one of a group consisting of physical and/or logical instances of processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems. The operational resources can comprise at least one of power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.

Referring to FIG. 6B, a method 605 for handling information can further comprise ascertaining 606 resources and/or capabilities used by an object of the plurality of objects, and setting 607 the entitlement vector according to the ascertained resources and/or capabilities.

In various embodiments and/or applications, as illustrated in FIG. 6C, a method 610 for handling information can further comprise activating 611 the entitlement vector as a request for resources as specified by the hint instruction, and applying 612 the entitlement vector to hardware. The method 610 can further comprise using 613 the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.

In further embodiments, depicted in FIG. 6D, a method 615 for handling information can further comprise determining 616 a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects, and powering down 617 hardware which is indicated as not-used.

Several methods can deploy a hint instruction to perform various aspects of operation. For example, as shown in FIG. 6E, a method 620 for handling information can further comprise using 621 the hint instruction as a predictive hint designating resources which are predicted to be used by the at least one object of a plurality of a plurality of objects.

In additional embodiments, a method 630 for handling information can schedule resources based on the hint instruction. Accordingly, as shown in FIG. 6F, method 630 for handling information can further comprise specifying 631 entitlement as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources, and scheduling 632 a process of a plurality of processes based on the entitlement.

Referring to FIGS. 7A through 7J, schematic flow diagrams depict an embodiment or embodiments of a method operable in an information handling apparatus adapted to determine usage of resources and use this determination to form a hint instruction. Accordingly, in an illustrative embodiment, referring to FIG. 7A, a method 700 for handling information can comprise determining 701 resources used by at least one object of a plurality of a plurality of objects, setting 702 an entitlement vector based on the determination of resources, and forming 703 a hint instruction as a function of the entitlement vector.

In various embodiments, the resources can comprise physical/logical resources and operational resources. The physical/logical resources can comprise at least one of a group consisting of physical and/or logical instances of processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems. The operational resources can comprise at least one of power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.

Referring to FIG. 7B, a method 705 for handling information can further comprise ascertaining and specifying 706 resources and capabilities used by the at least one object; and setting 707 the entitlement vector based on the ascertained and specified resources and capabilities used by the at least one object.

In various embodiments and/or applications, as illustrated in FIG. 7C, a method 710 for handling information can further comprise ascertaining and specifying 711 the resources used by at least one object of a plurality of a plurality of objects, and setting 712 the entitlement vector in accordance with the ascertained and specified resources.

Similarly, referring to FIG. 7D, a method 715 for handling information can further comprise ascertaining 716 resources and/or capabilities used by an object of the plurality of objects, and setting 717 an entitlement vector is operable to set the entitlement vector according to the ascertained resources and/or capabilities.

Various methods can use a hint instruction to perform several aspects of operation. For example, as shown in FIG. 7E, a method 720 for handling information can further comprise receiving 721 the hint instruction, activating 722 the entitlement vector as a request for resources as specified by the hint instruction, and applying 723 the entitlement vector to hardware. The method 720 can further comprise using 724 the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.

In other embodiments and/or applications, as depicted in FIG. 7F, a method 725 for handling information can further comprise receiving 726 the hint instruction, determining 727 a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects, and powering down 728 hardware which is indicated as not-used.

Similarly, illustrated in FIG. 7G, a method 730 for handling information can further comprise receiving 731 the hint instruction, and using 732 the hint instruction as a predictive hint designating resources which are predicted to be used by the at least one object of a plurality of a plurality of objects.

Furthermore, referring to FIG. 7H, a method 735 for handling information can further comprise receiving 736 the hint instruction, supplying 737 the entitlement vector via the hint instruction, and dynamically modifying 738 the entitlement vector according to usage of resources by the at least one object of a plurality of a plurality of objects.

In additional embodiments, a method 740 for handling information can schedule resources based on the hint instruction. Accordingly, as shown in FIG. 7I, method 740 for handling information can further comprise receiving 741 the hint instruction, and scheduling 742 a process of a plurality of processes based on entitlement specified by the hint instruction.

Similarly, in a multi-threaded environment can be used for scheduling resources according to the hint instruction. Thus, as depicted in FIG. 7J, a method 745 for handling information can further comprise receiving 746 the hint instruction, and scheduling 747 a thread of a plurality of threads in a multi-threaded environment based on entitlement specified by the hint instruction.

Referring to FIGS. 8A through 8D, schematic flow diagrams depict an embodiment or embodiments of a method operable in an information handling apparatus adapted to receive a hint instruction and schedule resources accordingly. Thus, as illustrated in FIG. 8A, a method 800 for handling information can comprise specifying 801 entitlement as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources, and specifying 802 resources used by at least one object of a plurality of a plurality of objects in an entitlement vector. The method 800 can further comprise receiving 803 a hint instruction comprising the entitlement vector, and scheduling 804 a process of a plurality of processes based on entitlement specified by the hint instruction to selected ones of the plurality of functions and components.

In various embodiments, the resources can comprise physical/logical resources and operational resources. The physical/logical resources can comprise at least one of a group consisting of physical and/or logical instances of processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems. The operational resources can comprise at least one of power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.

Referring to FIG. 8B, a method 805 for handling information can further comprise ascertaining and specifying 806 the resources is operable to ascertain resources and/or capabilities used by an object of the plurality of objects, and setting 807 the entitlement vector according to the ascertained resources and/or capabilities.

In various embodiments and/or applications, as illustrated in FIG. 8C, a method 810 for handling information can further comprise activating 811 the entitlement vector as a request for resources as specified by the hint instruction, and applying 812 the entitlement vector to hardware. The method 810 can further comprise using 813 the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.

In further embodiments, depicted in FIG. 8D, a method 815 for handling information can further comprise determining 816 a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects, and powering down 817 hardware which is indicated as not-used.

Referring to FIG. 9, an embodiment comprises a computer program product 900. The computer program product includes a computer-readable storage medium 906 bearing program instructions. The program instructions are operable to perform a process in a computing device. The program instructions can comprise program instructions 916 operable to specify resources used by at least one object of a plurality of a plurality of objects in an entitlement vector, and program instructions 918 operable to issue a hint instruction based on the entitlement vector for usage in scheduling the resources.

In some embodiments, the computer program product can further comprise program instructions 920 operable to receive the hint instruction which comprises the entitlement vector that specifies resources used by the at least one object of a plurality of the plurality of objects, and program instructions 922 operable to dynamically modify the entitlement vector according to usage of resources by the at least one object of the plurality of a plurality of objects.

In further embodiments and/or applications, the computer program product can further comprise program instructions 924 operable to determine resources used by the at least one object of a plurality of the plurality of objects, program instructions 926 operable to set the entitlement vector based on the determination of resources, and program instructions 928 operable to form the hint instruction as a function of the entitlement vector.

In various embodiments, the computer program product can include program instructions for scheduling resources. Accordingly, the computer program product can further comprise program instructions 930 operable to specify entitlement as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources, program instructions 932 operable to specify resources used by at least one object of a plurality of a plurality of objects in an entitlement vector, and program instructions 934 operable to receive a hint instruction comprising the entitlement vector. The computer program product can further comprise program instructions 936 operable to schedule a process of a plurality of processes based on entitlement specified by the hint instruction to selected ones of the plurality of functions and components.

Referring to FIG. 10, a schematic block diagram illustrates an embodiment of an information handling apparatus 1000 which is adapted to facilitate resource allocation. The illustrative information handling apparatus 1000 can comprise means 1016 for specifying resources 1008 used by at least one object 1002 of a plurality of a plurality of objects 1002 in an entitlement vector 1004, and means 1018 for issuing a hint instruction 1014 based on the entitlement vector 1004 for usage in scheduling the resources 1008.

In various embodiments, the information handling apparatus 1000 can further comprise means 1020 for receiving the hint instruction 1014 which comprises the entitlement vector 1004 that specifies resources 1008 used by the at least one object 1002 of a plurality of the plurality of objects 1002, and means 1022 for dynamically modifying the entitlement vector 1004 according to usage of resources 1008 by the at least one object 1002 of the plurality of a plurality of objects 1002.

In further embodiments and/or applications, the information handling apparatus 1000 can further comprise means 1024 for determining resources 1008 used by the at least one object 1002 of a plurality of the plurality of objects 1002, means 1026 for setting the entitlement vector based on the determination of resources 1008, and means 1028 for forming the hint instruction 1014 as a function of the entitlement vector 1004.

In various embodiments, the information handling apparatus 1000 can include program instructions for scheduling resources. Accordingly, the information handling apparatus 1000 can further comprise means 1030 for specifying entitlement 1054 as predetermined rights wherein a process 1056 of a plurality of processes 1056 is entitled to a predetermined percentage of operational resources 1012, means 1032 for specifying resources 1008 used by at least one object 1002 of a plurality of a plurality of objects 1002 in an entitlement vector 1004, and means 1034 for receiving a hint instruction 1014 comprising the entitlement vector 1004. The information handling apparatus 1000 can further comprise means 1036 for scheduling a process 1056 of a plurality of processes 1056 based on entitlement 1054 specified by the hint instruction 1014 to selected ones of the plurality of functions 1050 and components 1052.

Terms “substantially”, “essentially”, or “approximately”, that may be used herein, relate to an industry-accepted variability to the corresponding term. Such an industry-accepted variability ranges from less than one percent to twenty percent and corresponds to, but is not limited to, materials, shapes, sizes, functionality, values, process variations, and the like. The term “coupled”, as may be used herein, includes direct coupling and indirect coupling via another component or element where, for indirect coupling, the intervening component or element does not modify the operation. Inferred coupling, for example where one element is coupled to another element by inference, includes direct and indirect coupling between two elements in the same manner as “coupled”.

The illustrative pictorial diagrams depict structures and process actions in a manufacturing process. Although the particular examples illustrate specific structures and process acts, many alternative implementations are possible and commonly made by simple design choice. Manufacturing actions may be executed in different order from the specific description herein, based on considerations of function, purpose, conformance to standard, legacy structure, and the like.

While the present disclosure describes various embodiments, these embodiments are to be understood as illustrative and do not limit the claim scope. Many variations, modifications, additions and improvements of the described embodiments are possible. For example, those having ordinary skill in the art will readily implement the steps necessary to provide the structures and methods disclosed herein, and will understand that the process parameters, materials, shapes, and dimensions are given by way of example only. The parameters, materials, and dimensions can be varied to achieve the desired structure as well as modifications, which are within the scope of the claims. Variations and modifications of the embodiments disclosed herein may also be made while remaining within the scope of the following claims. 

1. An information handling apparatus comprising: an entitlement vector operable to specify resources used by at least one object of a plurality of a plurality of objects; and logic operable to issue a hint instruction based on the entitlement vector for usage in scheduling the resources.
 2. The information handling apparatus according to claim 1 wherein: the entitlement vector is operable to specify resources and capabilities used by the at least one object.
 3. The information handling apparatus according to claim 1 wherein: the entitlement vector is operable to ascertain and specify resources and capabilities used by the at least one object.
 4. The information handling apparatus according to claim 1 wherein: the plurality of resources comprises physical/logical resources and operational resources.
 5. The information handling apparatus according to claim 4 wherein the physical/logical resources are at least one of a group consisting of physical and/or logical instances of: processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems.
 6. The information handling apparatus according to claim 4 wherein the operational resources are at least one of a group consisting of: power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.
 7. The information handling apparatus according to claim 1 further comprising: logic operable to ascertain and specify the resources used by at least one object of a plurality of a plurality of objects, and operable to set the entitlement vector in accordance with the ascertained and specified resources.
 8. The information handling apparatus according to claim 7 wherein: the logic operable to ascertain and specify the resources is operable to ascertain resources and/or capabilities used by an object of the plurality of objects and further operable to set the entitlement vector according to the ascertained resources and/or capabilities.
 9. The information handling apparatus according to claim 7 wherein: the logic operable to ascertain and specify the resources is operable to ascertain resources and/or capabilities included in a library and operable to request the ascertained resources and/or capabilities.
 10. The information handling apparatus according to claim 7 wherein: the logic operable to ascertain and specify the resources is operable to ascertain resources and/or capabilities is included in a library and operable to request preferential scheduling of the ascertained resources and/or capabilities.
 11. The information handling apparatus according to claim 1 further comprising: a library comprising a plurality of functions and components operable to handle the plurality of objects; wherein the entitlement vector is operable to assign entitlement to at least one of a plurality of resources to selected ones of the plurality of functions and components, and wherein the entitlement is specified as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources.
 12. The information handling apparatus according to claim 1 wherein: the hint instruction activates the entitlement vector as a request for resources and is applied to hardware which uses the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.
 13. The information handling apparatus according to claim 1 wherein: the hint instruction is operable to power down hardware in a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects.
 14. The information handling apparatus according to claim 1 wherein: the hint instruction is operable as a predictive hint designating resources which are predicted to be used by the at least one object of a plurality of a plurality of objects.
 15. The information handling apparatus according to claim 1 further comprising: resource allocation logic operable to dynamically modify the entitlement vector according to usage of resources by the at least one object of a plurality of a plurality of objects, wherein the hint instruction supplies the entitlement vector.
 16. The information handling apparatus according to claim 1 further comprising: a scheduler operable to schedule a process of a plurality of processes based on the entitlement.
 17. The information handling apparatus according to claim 1 further comprising: a scheduler operable to schedule a thread of a plurality of threads in a multi-threaded environment based on the entitlement.
 18. An information handling apparatus comprising: logic operable to receive a hint instruction comprising an entitlement vector that specifies resources used by at least one object of a plurality of a plurality of objects; and resource allocation logic operable to dynamically modify the entitlement vector according to usage of resources by the at least one object of the plurality of a plurality of objects.
 19. The information handling apparatus according to claim 18 wherein: the resources comprise physical/logical resources and operational resources; the physical/logical resources comprise at least one of a group consisting of physical and/or logical instances of: processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems; and the operational resources comprise at least one of a group consisting of: power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.
 20. The information handling apparatus according to claim 18 wherein: the entitlement vector is operable to ascertain and specify resources and capabilities used by the at least one object.
 21. The information handling apparatus according to claim 18 further comprising: logic operable to ascertain and specify the resources used by at least one object of a plurality of a plurality of objects, and operable to set the entitlement vector in accordance with the ascertained and specified resources.
 22. The information handling apparatus according to claim 21 wherein: the logic operable to ascertain and specify the resources is operable to ascertain resources and/or capabilities used by an object of the plurality of objects and further operable to set the entitlement vector according to the ascertained resources and/or capabilities.
 23. The information handling apparatus according to claim 21 wherein: the logic operable to ascertain and specify the resources is operable to ascertain resources and/or capabilities included in a library and operable to request the ascertained resources and/or capabilities.
 24. The information handling apparatus according to claim 18 further comprising: a library comprising a plurality of functions and components operable to handle the plurality of objects; wherein the entitlement vector is operable to assign entitlement to at least one of a plurality of resources to selected ones of the plurality of functions and components, and wherein the entitlement is specified as predetermined rights wherein a process of a plurality of processes is entitled to a predetermined percentage of operational resources.
 25. The information handling apparatus according to claim 18 wherein: the hint instruction activates the entitlement vector as a request for resources and is applied to hardware which uses the entitlement vector for scheduling of the at least one object of a plurality of a plurality of objects.
 26. The information handling apparatus according to claim 18 wherein: the hint instruction is operable to power down hardware in a condition that the entitlement vector indicates the hardware is not used by the at least one object of a plurality of a plurality of objects.
 27. The information handling apparatus according to claim 18 wherein: the hint instruction is operable as a predictive hint designating resources which are predicted to be used by the at least one object of a plurality of a plurality of objects.
 28. The information handling apparatus according to claim 18 further comprising: a scheduler operable to schedule a process of a plurality of processes based on the entitlement.
 29. The information handling apparatus according to claim 18 further comprising: a scheduler operable to schedule a thread of a plurality of threads in a multi-threaded environment based on the entitlement.
 30. An information handling apparatus comprising: resource allocation logic operable to determine resources used by at least one object of a plurality of a plurality of objects; and logic operable to set an entitlement vector based on the determination of resources and form a hint instruction as a function of the entitlement vector.
 31. The information handling apparatus according to claim 30 wherein: the resources comprise physical/logical resources and operational resources; the physical/logical resources comprise at least one of a group consisting of physical and/or logical instances of: processors, central processing units (CPUs), graphics hardware, network controllers, memory, memory management, hardware, microarchitecture, sound cards, video cards, network interfaces, instruction set architecture (ISA), library calls, library functions, software objects, compilers, and operating systems; and the operational resources comprise at least one of a group consisting of: power, voltage, current, electrons, frequency, execution cycles, battery consumption, battery life, constraints, temperature, and measurable phenomena.
 32. The information handling apparatus according to claim 30 wherein: the resource allocation logic is operable to ascertain and specify resources and capabilities used by the at least one object; and the logic operable to set an entitlement vector is operable to set the entitlement vector based on the ascertained and specified resources and capabilities used by the at least one object.
 33. The information handling apparatus according to claim 30 wherein: the resource allocation logic is operable to ascertain and specify the resources used by at least one object of a plurality of a plurality of objects; and the logic operable to set an entitlement vector is operable to set the entitlement vector in accordance with the ascertained and specified resources.
 34. The information handling apparatus according to claim 30 wherein: the resource allocation logic is operable to ascertain resources and/or capabilities used by an object of the plurality of objects; and the logic operable to set an entitlement vector is operable to set the entitlement vector according to the ascertained resources and/or capabilities.
 35. The information handling apparatus according to claim 30 wherein: the resource allocation logic is operable to ascertain and specify resources and/or capabilities included in a library; and the logic operable to set an entitlement vector is operable to request the ascertained resources and/or capabilities. 36-88. (canceled) 